<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>简单文件上传</title>
</head>
<body>
    <input type="button" value="form表单上传" onclick="uploadSimple();">
    <input type="button" value="formData上传" onclick="uploadFormData();">
    <input type="button" value="formData上传+上传进度" onclick="uploadFormDataProgress();">
    <input type="button" value="formData大文件分片上传" onclick="uploadFormDataPiece();">
    <input type="button" value="formData大文件分片上传+上传进度" onclick="uploadFormDataProgressPiece();">
    <script src="jquery.min.js"></script>
    <script>

        $(function(){
            console.log(1);
        })

        function uploadSimple(){
            window.location.href="http://localhost:8080/uploadSimple";
        }

        function uploadFormData(){
            window.location.href="http://localhost:8080/uploadFormData";
        }

        function uploadFormDataProgress(){
            window.location.href="http://localhost:8080/uploadFormDataProgress";
        }

        function uploadFormDataPiece() {
            window.location.href="http://localhost:8080/uploadFormDataPiece";
        }

        function uploadFormDataProgressPiece() {
            window.location.href="http://localhost:8080/uploadFormDataProgressPiece";
        }
    </script>
</body>
</html>